<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<html>
<head>
<title>会员管理</title>
<%@ include file="../../../common/admin_taglib.jsp" %>
<link rel="stylesheet" type="text/css" href="${ctx}/resources/js/jquery-easyui-1.3.3/themes/bootstrap/easyui.css">
<link rel="stylesheet" type="text/css" href="${ctx}/resources/js/jquery-easyui-1.3.3/themes/icon.css">
<link rel="stylesheet" type="text/css" href="${ctx}/resources/js/jquery-easyui-portal/portal.css">
<script type="text/javascript" src="${ctx}/resources/js/jquery-easyui-1.3.3/jquery.easyui.min.js"></script>
<script type="text/javascript" src="${ctx}/resources/js/jquery-easyui-1.3.3/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="${ctx}/resources/js/jquery-easyui-portal/jquery.portal.js"></script>
<script type="text/javascript">
$(function(){
	$("#pp").portal({
		border:false,
		fit:false
	});
});

</script>
<style type="text/css">
.partal_item {background:#f3eeaf;padding:5px;}
.partal_item img {width:100%;height:150px;margin-bottom:5px;}
</style>
</head>
<body>

<h1 class="page-title">Shop4j 管理中心</h1>
	<div class="btn-toolbar">
	    <a class="btn btn-primary" href="${ctx}/admin/member/insert"><i class="icon-plus"></i>添加会员</a>
	    <a class="btn" href="${ctx}/admin/member/export">导出</a>
	  	<div class="btn-group"></div>
	</div>
<ul class="breadcrumb">
	 <li><a href="${ctx}/admin/main">管理中心</a><span class="divider">/</span></li>
     <li class="active">会员管理</li>
</ul>

	<div class="block">
		<div class="block-heading">
            <span class="block-icon pull-right">
                <a href="#widget2container" data-toggle="collapse">
                	<i class="icon-chevron-down"></i>
                </a>
            </span>
            <a>会员列表</a>
        </div>
        
        <div id="widget2container" class="block-body collapse in">
       			<form:form id="search_form" cssClass="form-horizontal" method="post" commandName="query">
	        	<table width="100%">
	        		<tr>
	        			<td>会员名称</td>
	        			<td>
	        				<form:input path="username" cssClass="input-xlarge" placeholder="请输入文字..."/>
	        			</td>
	        			<td>E-Mail地址</td>
	        			<td>
	        				<form:input path="mail" cssClass="input-xlarge" placeholder="请输入文字..."/>
	        			</td>
	        		</tr>
	        		<tr>
	        			<td>电话</td>
	        			<td>
	        				<form:input path="telphone" cssClass="input-xlarge" placeholder="请输入文字..."/>
	        			</td>
	        			<td>状态</td>
	        			<td>
	        				<form:select path="status" cssClass="span2">
	        					<form:option value="">-请选择-</form:option>
	        				</form:select>
	        			</td>
	        		</tr>
	        		<tr>
	        			<td align="right" colspan="4">
	        				<button type="submit" class="btn btn-info">
	        					<i class="icon-search"></i>
	        					搜索
	        				</button>
	        			</td>
	        		</tr>
	        	</table>
            </form:form>
        </div>
	</div>
	<div class="well">
		<table class="table">
			<thead>
		    	<tr>
		    		<td>#编号</td>
		    		<td>会员名称</td>
		    		<td>注册时间</td>
		    		<td>最近登录时间</td>
		    		<td>EMail地址</td>
		    		<td>电话</td>
		    		<td>等级</td>
		    		<td>来源</td>
		    		<td>状态</td>
		    		<td>操作</td>
		        </tr>
		     </thead>
		     <tbody>
		     	<c:forEach items="${page.entities}" var="m">
		     	<tr>
		     		<td>${m.id}</td>
		     		<td><label>${m.username}</label></td>
		     		<td><fmt:formatDate value="${m.addTime}" pattern="yyyy-MM-dd HH:mm"/></td>
		     		<td><fmt:formatDate value="${m.loginTime}" pattern="yyyy-MM-dd HH:mm"/></td>
		     		<td>${m.mail}</td>
		     		<td align="center">${m.telphone}</td>
		     		<td align="center">${m.levelId}</td>
		     		<td align="center">${m.source}</td>
		     		<td>${m.status}</td>
		     		<td>
		     			<a href="${ctx}/admin/member/delete/${m.id}">删除</a>
		     			<a href="${ctx}/admin/member/update/${m.id}">编辑</a>
		     			<a href="${ctx}/admin/member/addressManager/${m.id}">管理收货地址</a>
		     		</td>
		     	</tr>
		     	</c:forEach>
		     </tbody>
		</table>
	</div>
	<dd:pagination formId="search_form" count="${page.count }" page="${page.page }" curpage="${page.curpage }"></dd:pagination>
</body>
</html>